package icu.sehnen.service;

import icu.sehnen.dao.CompanyDao;
import icu.sehnen.model.CompanyModel;

public class CompanyService {
    public CompanyModel getCompannModelForHome() {
        CompanyModel companyModel = new CompanyModel();
        CompanyDao companyDao = new CompanyDao();
        companyModel.setImgUrl(companyDao.imgUrl);
        companyModel.setCopyRight(companyDao.copyRight);
        companyModel.setTitle(companyDao.title);
        companyModel.setEnglishTitle(companyDao.englishTitle);
        companyModel.setAboutUs(companyDao.aboutUs);
        companyModel.setAd(companyDao.ad);
        return companyModel;
    }

    public CompanyModel getCompannModelForAbout() {
        return getCompannModelForHome();
    }
}
